package org.worthydots.client.filler;

import java.util.List;

import org.worthydots.access.jpa.dao.DAOFactory;
import org.worthydots.access.jpa.entity.Station;
import org.worthydots.service.extractor.ClearTripInfoExtractorService;

public class ClearTripDataFiller {

	public static void main(String[] args) {
		ClearTripInfoExtractorService clearTripInfoExtractorService = new ClearTripInfoExtractorService();
		clearTripInfoExtractorService.extractAndSaveAllStationInfo(true);
		List<Station> stations = DAOFactory.getInstance().getStationDAO().getAllStations();
		for (int i = 0; i < 5; i++) {
			clearTripInfoExtractorService.extractAndSaveStationRoute(stations.get(i).getCode(), true);
		}
	}

}
